package com.cyh.pangu.offer;

public class Offer58_2 {

    public String reverseLeftWords(String s, int n) {
        if (s == null || s.trim().length() == 0) {
            return "";
        }

        return s.substring(n) + s.substring(0, n);
    }

    public static void main(String[] args) {
        Offer58_2 offer58_2 = new Offer58_2();
        String result = offer58_2.reverseLeftWords("abcd", 2);
        System.out.println(result);

    }

}
